package com.service;

import com.sun.org.apache.xpath.internal.operations.Or;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ Author xsd 循环依赖测试-
 * @ crate time 2020/6/23 16:40
 * @ 描述
 * nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException
 * spring-解决：https://www.cnblogs.com/zzq6032010/p/11406405.html
 */
@Service
public class CirDeService {

    @Autowired
    public void setCirDeService1(CirDeService1 cirDeService1) {
        this.cirDeService1 = cirDeService1;
    }

    //    @Resource
    private CirDeService1 cirDeService1;
    @Autowired
    private CirDeService cirDeService;
//    @Autowired
//    public CirDeService(CirDeService1 cirDeService1) {
//        this.cirDeService1 = cirDeService1;
//    }

}
